import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        int age = num.nextInt();
        int seconds = 31560000;
        long time = (long) age * seconds;
        System.out.println(time);
    }
}
